﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Infrastructure.Middlewares;
using Microsoft.AspNetCore.Builder;

namespace Domain.Infrastructure.ServiceExtensions
{
    public static class MiddleWareSetup
    {
        public static IApplicationBuilder AddMiddleWareSetup(this IApplicationBuilder app) {
            app.UseMiddleware<ExceptionHandlerMidd>();
            app.UseMiddleware<RequRespLogMildd>();
            app.UseMiddleware<RecordAccessLogsMildd>();
            app.UseMiddleware<IPLogMildd>();
            return app;
        }
    }
}
